* gtk_tooltip_set_icon_from_icon_name:
* @tooltip: a #GtkTooltip
* @icon_name: (allow-none): an icon name, or %NULL
- * @size: (type int): a stock icon size (#GtkIconSize)
*
* Sets the icon of the tooltip (which is in front of the text) to be
* the icon indicated by @icon_name with the size indicated
*/
void
gtk_tooltip_set_icon_from_icon_name (GtkTooltip *tooltip,
- const gchar *icon_name,
- GtkIconSize size)
+ const gchar *icon_name)
{
g_return_if_fail (GTK_IS_TOOLTIP (tooltip));
gtk_tooltip_window_set_image_icon_from_name (GTK_TOOLTIP_WINDOW (tooltip->window),
- icon_name,
- size);
+ icon_name);
}
/**
* gtk_tooltip_set_icon_from_gicon:
* @tooltip: a #GtkTooltip
* @gicon: (allow-none): a #GIcon representing the icon, or %NULL
- * @size: (type int): a stock icon size (#GtkIconSize)
*
* Sets the icon of the tooltip (which is in front of the text)
* to be the icon indicated by @gicon with the size indicated
*/
void
gtk_tooltip_set_icon_from_gicon (GtkTooltip *tooltip,
- GIcon *gicon,
- GtkIconSize size)
+ GIcon *gicon)
{
g_return_if_fail (GTK_IS_TOOLTIP (tooltip));
gtk_tooltip_window_set_image_icon_from_gicon (GTK_TOOLTIP_WINDOW (tooltip->window),
- gicon,
- size);
+ gicon);
}
/**
GdkPixbuf *pixbuf);
GDK_AVAILABLE_IN_ALL
void gtk_tooltip_set_icon_from_icon_name (GtkTooltip *tooltip,
- const gchar *icon_name,
- GtkIconSize size);
+ const gchar *icon_name);
GDK_AVAILABLE_IN_ALL
void gtk_tooltip_set_icon_from_gicon (GtkTooltip *tooltip,
- GIcon *gicon,
- GtkIconSize size);
+ GIcon *gicon);
GDK_AVAILABLE_IN_ALL
void gtk_tooltip_set_custom (GtkTooltip *tooltip,
GtkWidget *custom_widget);
void
gtk_tooltip_window_set_image_icon_from_name (GtkTooltipWindow *window,
- const char *icon_name,
- GtkIconSize icon_size)
+ const char *icon_name)
{
if (icon_name)
{
- gtk_image_set_from_icon_name (GTK_IMAGE (window->image), icon_name, icon_size);
+ gtk_image_set_from_icon_name (GTK_IMAGE (window->image), icon_name, GTK_ICON_SIZE_MENU);
gtk_widget_show (window->image);
}
else
void
gtk_tooltip_window_set_image_icon_from_gicon (GtkTooltipWindow *window,
- GIcon *gicon,
- GtkIconSize icon_size)
+ GIcon *gicon)
{
if (gicon != NULL)
{
- gtk_image_set_from_gicon (GTK_IMAGE (window->image), gicon, icon_size);
+ gtk_image_set_from_gicon (GTK_IMAGE (window->image), gicon, GTK_ICON_SIZE_MENU);
gtk_widget_show (window->image);
}
else
void gtk_tooltip_window_set_image_icon (GtkTooltipWindow *window,
GdkPixbuf *pixbuf);
void gtk_tooltip_window_set_image_icon_from_name (GtkTooltipWindow *window,
- const char *icon_name,
- GtkIconSize icon_size);
+ const char *icon_name);
void gtk_tooltip_window_set_image_icon_from_gicon (GtkTooltipWindow *window,
- GIcon *gicon,
- GtkIconSize icon_size);
+ GIcon *gicon);
void gtk_tooltip_window_set_custom_widget (GtkTooltipWindow *window,
GtkWidget *custom_widget);
gpointer data)
{
gtk_tooltip_set_markup (tooltip, gtk_button_get_label (GTK_BUTTON (widget)));
- gtk_tooltip_set_icon_from_icon_name (tooltip, "edit-delete",
- GTK_ICON_SIZE_MENU);
+ gtk_tooltip_set_icon_from_icon_name (tooltip, "edit-delete");
return TRUE;
}